<?php

namespace Database\Seeders;

use App\Models\Telephone;
use Illuminate\Database\Seeder;

class TelephoneSeeder extends Seeder
{
  /**
   * Run the database seeds.
   */
  public function run()
  {
    // Francisco Ramones
    $firstTelephone = new Telephone();
    $firstTelephone->user_id = 1;
    $firstTelephone->type_id = 4;
    $firstTelephone->international_prefix = '+39';
    $firstTelephone->prefix = '02';
    $firstTelephone->number = '361691';
    $firstTelephone->save();

    // Barry Allen
    $firstTelephone = new Telephone();
    $firstTelephone->user_id = 2;
    $firstTelephone->type_id = 5;
    $firstTelephone->international_prefix = '+39';
    $firstTelephone->prefix = '055';
    $firstTelephone->number = '294883';
    $firstTelephone->save();

    // Citizien
    $firstTelephone = new Telephone();
    $firstTelephone->user_id = 3;
    $firstTelephone->type_id = 7;
    $firstTelephone->international_prefix = '+39';
    $firstTelephone->prefix = '06';
    $firstTelephone->number = '39967700';
    $firstTelephone->save();
  }
}
